Migrate to Firebase Cloud Messaging
Google Cloud Messaging, deprecated April 10 2018, has been deactivated and removed from Google's APIs. For equivalent functionality, use Firebase Cloud Messaging (FCM), which inherits the reliable and scalable GCM infrastructure, plus many new features. If you are an existing GCM user who has not yet migrated your system, see the migration guide for your platform.